package com.demo.Controller;

import com.demo.model.User;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller
public class UserAdviceController {
    @Resource(name = "user1")
    private User user;

    public void getUser() {
        System.out.println(user);
    }
}
